package com.lxw.redis.study.entity;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Lazy;

import java.util.List;

@Setter
@Getter
public class DeptEmp extends Dept {
    @Lazy
    private List<Emp> emps;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
